<%@page import="ejb.*"%>
<%@page import="java.util.*"%>
<%@ page import="constants.ObjectConstants"%>
<%
boolean admin= false;
ArrayList<Integer> grids= new ArrayList<Integer>();
grids= ((IRemoteLoginnedUserBean) request.getSession().getAttribute("userBean")).getGroupIds();
for(int q: grids){
	if(q==ObjectConstants.admin)//id admin object
		admin=true;
}
if(!admin)
	response.sendRedirect("privateOffice");
%>